package com.four.basicinfo.service.impl;

import com.four.basicinfo.dao.AbroadDao;
import com.four.basicinfo.entity.Abroad;
import com.four.basicinfo.service.AbroadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AbroadServiceImpl implements AbroadService {
    @Autowired
    private AbroadDao abroadMapper;
    /**
     * 查询出国
     *
     * @param id 出国主键
     * @return 出国
     */
    @Override
    public Abroad selectAbroadById(Long id)
    {
        return abroadMapper.selectAbroadById(id);
    }
    /**
     * 新增出国
     *
     * @param abroad 出国
     * @return 结果
     */
    @Override
    public int insertAbroad(Abroad abroad)
    {
        return abroadMapper.insertAbroad(abroad);
    }

    /**
     * 修改出国
     *
     * @param abroad 出国
     * @return 结果
     */
    @Override
    public int updateAbroad(Abroad abroad)
    {
        return abroadMapper.updateAbroad(abroad);
    }

    /**
     * 删除出国信息
     *
     * @param id 出国主键
     * @return 结果
     */
    @Override
    public int deleteAbroadById(Long id)
    {
        return abroadMapper.deleteAbroadById(id);
    }
}
